﻿// See https://aka.ms/new-console-template for more information

using FullSearch;
using FullSearch.Common;

var p = new People
{
    Id = 1,
    Name = "里斯",
    Age = 100,
    Time = DateTime.Now
};

var p2 = new People
{
    Id = 2,
    Name = "王五",
    Age = 50,
    Time = DateTime.Now
};

var index = new DocIndex("a");


index.Update(p);

index.UpdateMany(new List<People> { p, p2 });

Console.WriteLine(index.TotalDoc());

Console.WriteLine("Hello, World!");
Console.ReadKey();
index.ShutDown();

public class People
{
    public int Id { get; set; }

    public string Name { get; set; }

    public long Age { get; set; }

    public DateTime Time { get; set; }
}